package demo.spring.boot.health;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by chenlushun on 2016/12/9.
 */
@RestController
@RequestMapping("rest")
public class RestHelloController {
    /**
     * 一个简单的请求
     */
    @RequestMapping("/word")
    public String sayHello() {
        System.out.println("hello word");
        return "Hello Word";
    }
}
